
// 管理项目用户相关接口
import service from "./service";
// 用户相关请求地址
const API = {
  GET_CATE: '/category/all',
  CATE: '/category',

}
export const getCategoryAPI = () => service.get(API.GET_CATE)
export const newCategoryAPI = (data) => service.post(API.CATE, data)
export const updateCategoryAPI = (data) => service.put(API.CATE, data)
export const deleteCategoryAPI = (data) => service.delete(API.CATE + `/${data}`)

// export const getCart = () => service.get(API.GET_CART_URL + 4)
// export const deleteCart = () => service.post(API.DELETE_URL, [4])
// export const getCart = () => service.get(API.LOGIN_URL)